package InterfaceDemo;

public class TestError {
    public static void main(String[] args) {
        Movable m = new Bird();
        ((Flyable) m).fly();

        Flyable f1 = new Bird();
        Flyable f2 = new Plane();
        ((Movable) f1).move();
        ((Movable) f2).move();
    }
}